﻿using System;
using System.CodeDom.Compiler;
using System.Reflection;
using Prism.Mvvm;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Xaml;
using Xamarin.Forms.Xaml.Internals;

namespace AutoR.Views
{
	// Token: 0x0200000B RID: 11
	[XamlFilePath("Views\\ChangeLog.xaml")]
	public class ChangeLog : ContentPage
	{
		// Token: 0x06000047 RID: 71 RVA: 0x00003562 File Offset: 0x00001762
		public ChangeLog()
		{
			this.InitializeComponent();
		}

		// Token: 0x06000048 RID: 72 RVA: 0x00003570 File Offset: 0x00001770
		[GeneratedCode("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
		private void InitializeComponent()
		{
			if (ResourceLoader.ResourceProvider != null && ResourceLoader.ResourceProvider(typeof(ChangeLog).GetTypeInfo().Assembly.GetName(), "Views/ChangeLog.xaml") != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			if (XamlLoader.XamlFileProvider != null && XamlLoader.XamlFileProvider(base.GetType()) != null)
			{
				this.__InitComponentRuntime();
				return;
			}
			BindingExtension bindingExtension = new BindingExtension();
			TapGestureRecognizer tapGestureRecognizer = new TapGestureRecognizer();
			Label label = new Label();
			BindingExtension bindingExtension2 = new BindingExtension();
			Label label2 = new Label();
			BindingExtension bindingExtension3 = new BindingExtension();
			Button button = new Button();
			StackLayout stackLayout = new StackLayout();
			Frame frame = new Frame();
			BindingExtension bindingExtension4 = new BindingExtension();
			Label label3 = new Label();
			ScrollView scrollView = new ScrollView();
			Frame frame2 = new Frame();
			StackLayout stackLayout2 = new StackLayout();
			NameScope value = new NameScope();
			NameScope.SetNameScope(this, value);
			this.SetValue(ViewModelLocator.AutowireViewModelProperty, new bool?(true));
			this.SetValue(Page.TitleProperty, "更新日志");
			stackLayout2.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
			stackLayout2.SetValue(View.VerticalOptionsProperty, LayoutOptions.FillAndExpand);
			frame.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame.SetValue(View.MarginProperty, new Thickness(3.0, 3.0, 3.0, 0.0));
			stackLayout.SetValue(StackLayout.OrientationProperty, StackOrientation.Horizontal);
			stackLayout.SetValue(View.HorizontalOptionsProperty, LayoutOptions.FillAndExpand);
			label.SetValue(Label.TextProperty, "返回");
			label.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			bindingExtension.Path = "BackCommand";
			BindingBase binding = ((IMarkupExtension<BindingBase>)bindingExtension).ProvideValue(null);
			tapGestureRecognizer.SetBinding(TapGestureRecognizer.CommandProperty, binding);
			label.GestureRecognizers.Add(tapGestureRecognizer);
			stackLayout.Children.Add(label);
			bindingExtension2.Path = "VersionName";
			bindingExtension2.StringFormat = "当前版本: {0}";
			BindingBase binding2 = ((IMarkupExtension<BindingBase>)bindingExtension2).ProvideValue(null);
			label2.SetBinding(Label.TextProperty, binding2);
			label2.SetValue(View.VerticalOptionsProperty, LayoutOptions.Center);
			label2.SetValue(View.MarginProperty, new Thickness(20.0, 0.0));
			stackLayout.Children.Add(label2);
			button.SetValue(Button.TextProperty, "下载新版本");
			button.SetValue(VisualElement.BackgroundColorProperty, Color.DarkTurquoise);
			button.SetValue(View.HorizontalOptionsProperty, LayoutOptions.EndAndExpand);
			bindingExtension3.Path = "OpenURLCommand";
			BindingBase binding3 = ((IMarkupExtension<BindingBase>)bindingExtension3).ProvideValue(null);
			button.SetBinding(Button.CommandProperty, binding3);
			stackLayout.Children.Add(button);
			frame.SetValue(ContentView.ContentProperty, stackLayout);
			stackLayout2.Children.Add(frame);
			frame2.SetValue(Xamarin.Forms.Layout.PaddingProperty, new Thickness(2.0));
			frame2.SetValue(View.MarginProperty, new Thickness(3.0, 0.0, 3.0, 3.0));
			frame2.SetValue(View.VerticalOptionsProperty, LayoutOptions.FillAndExpand);
			bindingExtension4.Path = "Log";
			BindingBase binding4 = ((IMarkupExtension<BindingBase>)bindingExtension4).ProvideValue(null);
			label3.SetBinding(Label.TextProperty, binding4);
			label3.SetValue(View.VerticalOptionsProperty, LayoutOptions.Fill);
			label3.SetValue(Label.LineBreakModeProperty, LineBreakMode.CharacterWrap);
			scrollView.Content = label3;
			frame2.SetValue(ContentView.ContentProperty, scrollView);
			stackLayout2.Children.Add(frame2);
			this.SetValue(ContentPage.ContentProperty, stackLayout2);
		}

		// Token: 0x06000049 RID: 73 RVA: 0x0000396F File Offset: 0x00001B6F
		private void __InitComponentRuntime()
		{
			this.LoadFromXaml(typeof(ChangeLog));
		}
	}
}
